<template>
  <table>
      <tr>
          <td>id</td>
          <td>分类名</td>
      </tr>
      <tr v-for="i in aa">
          <td>{{i.id}}</td>
          <td>{{i.name}}</td>
      </tr>
  </table>
</template>

<script>
export default {
    name:'bbb',
    data(){
        return{
            aa:[]
        }
    },methods:{
        gen(){
            this.$axios.get(`aa/`).then(item=>{
                this.aa = item.data
            })
        }
    },
    mounted(){
        this.gen()
    }
}
</script>

<style>

</style>